<template>
	<!-- 此处代码仅作示例供测试 -->
	<view>正在开发</view>
	
	<!-- #ifndef MP-WEIXIN -->
	<view>
	    <!-- <video 
			:src='videoUrl1' 
			controls></video> -->
	</view>
	<!-- #endif -->
	
	<!-- #ifdef MP-WEIXIN -->
	<view>
	    <!-- <live-player 
			:src='liveUrl1'
			:mode='live'
			:autoplay='true'
			:object-fit='fillCrop'
			@error='livePlayerError'
			@statechange='livePlayerStateChange'
			controls>
		</live-player> -->
	</view>
	<!-- #endif -->
</template>

<script>
	export default {
		data() {
			return {
				// videoUrl: "https://cn-gdgz-fx-01-13.bilivideo.com/live-bvc/197597/live_644226774_4267658_2500/index.m3u8",
				// videoUrl1: "https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8",
				// rtmp格式只支持在微信小程序-真机测试上进行测试
				// liveUrl: "rtmp://ns8.indexforce.com/home/mystream",
				// liveUrl1: "https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv",
			};
		},
		
		methods:{
			livePlayerError(e) {
			    console.error('live-player error:', e.detail.errMsg);
			},
			livePlayerStateChange(e) {
			    console.log('live-player code:', e.detail.code);
			}
		}
	};
	
	
</script>

<style>
</style>